package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_ask table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_ask"
 */

public abstract class BaseTJesAsk  implements Serializable {

	public static String REF = "TJesAsk";
	public static String PROP_TYPE = "Type";
	public static String PROP_RETIME = "Retime";
	public static String PROP_ISRE = "Isre";
	public static String PROP_IP = "Ip";
	public static String PROP_TEL = "Tel";
	public static String PROP_REPLY = "Reply";
	public static String PROP_CREATETIME = "Createtime";
	public static String PROP_ISPUB = "Ispub";
	public static String PROP_NO = "No";
	public static String PROP_EMAIL = "Email";
	public static String PROP_PWD = "Pwd";
	public static String PROP_CONTACT = "Contact";
	public static String PROP_ADDRESS = "Address";
	public static String PROP_TITLE = "Title";
	public static String PROP_NAME = "Name";
	public static String PROP_CONTENT = "Content";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTJesAsk () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesAsk (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String type;
	private java.lang.String name;
	private java.lang.String pwd;
	private java.lang.String email;
	private java.lang.String tel;
	private java.lang.String address;
	private java.lang.Integer no;
	private java.lang.String title;
	private java.lang.String content;
	private java.util.Date createtime;
	private java.lang.String contact;
	private java.lang.String ispub;
	private java.lang.String isre;
	private java.lang.String reply;
	private java.util.Date retime;
	private java.lang.String ip;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: NAME
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: NAME
	 * @param name the NAME value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: PWD
	 */
	public java.lang.String getPwd () {
		return pwd;
	}

	/**
	 * Set the value related to the column: PWD
	 * @param pwd the PWD value
	 */
	public void setPwd (java.lang.String pwd) {
		this.pwd = pwd;
	}



	/**
	 * Return the value associated with the column: email
	 */
	public java.lang.String getEmail () {
		return email;
	}

	/**
	 * Set the value related to the column: email
	 * @param email the email value
	 */
	public void setEmail (java.lang.String email) {
		this.email = email;
	}



	/**
	 * Return the value associated with the column: tel
	 */
	public java.lang.String getTel () {
		return tel;
	}

	/**
	 * Set the value related to the column: tel
	 * @param tel the tel value
	 */
	public void setTel (java.lang.String tel) {
		this.tel = tel;
	}



	/**
	 * Return the value associated with the column: address
	 */
	public java.lang.String getAddress () {
		return address;
	}

	/**
	 * Set the value related to the column: address
	 * @param address the address value
	 */
	public void setAddress (java.lang.String address) {
		this.address = address;
	}



	/**
	 * Return the value associated with the column: NO
	 */
	public java.lang.Integer getNo () {
		return no;
	}

	/**
	 * Set the value related to the column: NO
	 * @param no the NO value
	 */
	public void setNo (java.lang.Integer no) {
		this.no = no;
	}



	/**
	 * Return the value associated with the column: TITLE
	 */
	public java.lang.String getTitle () {
		return title;
	}

	/**
	 * Set the value related to the column: TITLE
	 * @param title the TITLE value
	 */
	public void setTitle (java.lang.String title) {
		this.title = title;
	}



	/**
	 * Return the value associated with the column: CONTENT
	 */
	public java.lang.String getContent () {
		return content;
	}

	/**
	 * Set the value related to the column: CONTENT
	 * @param content the CONTENT value
	 */
	public void setContent (java.lang.String content) {
		this.content = content;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: CONTACT
	 */
	public java.lang.String getContact () {
		return contact;
	}

	/**
	 * Set the value related to the column: CONTACT
	 * @param contact the CONTACT value
	 */
	public void setContact (java.lang.String contact) {
		this.contact = contact;
	}



	/**
	 * Return the value associated with the column: ISPUB
	 */
	public java.lang.String getIspub () {
		return ispub;
	}

	/**
	 * Set the value related to the column: ISPUB
	 * @param ispub the ISPUB value
	 */
	public void setIspub (java.lang.String ispub) {
		this.ispub = ispub;
	}



	/**
	 * Return the value associated with the column: ISRE
	 */
	public java.lang.String getIsre () {
		return isre;
	}

	/**
	 * Set the value related to the column: ISRE
	 * @param isre the ISRE value
	 */
	public void setIsre (java.lang.String isre) {
		this.isre = isre;
	}



	/**
	 * Return the value associated with the column: REPLY
	 */
	public java.lang.String getReply () {
		return reply;
	}

	/**
	 * Set the value related to the column: REPLY
	 * @param reply the REPLY value
	 */
	public void setReply (java.lang.String reply) {
		this.reply = reply;
	}



	/**
	 * Return the value associated with the column: RETIME
	 */
	public java.util.Date getRetime () {
		return retime;
	}

	/**
	 * Set the value related to the column: RETIME
	 * @param retime the RETIME value
	 */
	public void setRetime (java.util.Date retime) {
		this.retime = retime;
	}



	/**
	 * Return the value associated with the column: IP
	 */
	public java.lang.String getIp () {
		return ip;
	}

	/**
	 * Set the value related to the column: IP
	 * @param ip the IP value
	 */
	public void setIp (java.lang.String ip) {
		this.ip = ip;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesAsk)) return false;
		else {
			com.lovejes.app.domain.TJesAsk tJesAsk = (com.lovejes.app.domain.TJesAsk) obj;
			if (null == this.getId() || null == tJesAsk.getId()) return false;
			else return (this.getId().equals(tJesAsk.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}